/* 导出页面需要的信息 */
export const Page = {
  /* 表格展示部分 */
  tableHeader: [
    {
      title: "库存SKU",
      value: "sku",
      width: "150px",
      IsUpdata: true,
    },
    {
      title: "商品名称",
      value: "sku_name",
      width: "220px",
    },
    {
      title: "供应商名称",
      value: "supplier_name",
      width: "150px",
    },
    {
      title: "仓库类型",
      value: "warehouse_name",
      width: "130px",
    },
    {
      title: "当前库存",
      value: "quality_stock",
      width: "140px",
    },
    {
      title: "库存总价",
      value: "quality_stock_price",
      width: "120px",
    },
    {
      title: "库存单价",
      value: "quality_stock_unit_price",
      width: "120px",
    },
    {
      title: "新订单发货",
      value: "new_order_id",
      width: "150px",
    },
    {
      title: "新订单SKU",
      value: "stock_new_order_sku",
      width: "140px",
    },
    {
      title: "新订单数量",
      value: "stock_new_order_sku_num",
      width: "150px",
    },
    {
      title: "新订单发货数量",
      value: "new_order_sku_num",
      width: "140px",
    },
  ],
  /* 弹窗表单 */
  Dialog: {
    /* 修改新订单出库弹窗 */
    UpdataDialog: {
      DialogTtile: "修改新订单出库", // 弹窗标题
      DialogConfirmText: "确认修改", // 弹窗确认按钮文字
      DialogForm: {
        stock_in_id: "",
        new_order_id: "",
        exchange_order_id: "",
        new_order_sku_num: "",
        exchange_order_num: "",
      },
      rules: {
        supplier_id: [
          { required: true, message: "请选择供应商", trigger: "blur" },
        ],
        warehouse_id: [
          { required: true, message: "请选择仓库类型", trigger: "blur" },
        ],
        sku: [{ required: true, message: "请选择sku", trigger: "blur" }],
        sku_name: [
          { required: true, message: "请选择sku名称", trigger: "blur" },
        ],
        stock_in_unit_price: [
          { required: true, message: "请输入备货入库单价", trigger: "blur" },
        ],
        stock_in_num: [
          { required: true, message: "请输入备货入库数量", trigger: "blur" },
        ],
      },
      DialogFormType: [
        {
          name: "请选择库存商品",
          value: "stock_in_id",
          type: "No",
          GetApi: "GetStockUpInList",
          placeholder: "请选择库存商品",
          Search: true,
          ShowValue: "新订单出库选择库存商品",
          tableHeader: [
            {
              title: "入库记录时间",
              value: "stock_in_time",
              width: "150px",
              IsUpdata: true,
            },
            {
              title: "仓库类型",
              value: "warehouse_name",
              width: "120px",
            },
            {
              title: "SKU",
              value: "sku",
              width: "120px",
            },
            {
              title: "商品名称",
              value: "sku_name",
              width: "130px",
            },
            {
              title: "备货入库单价",
              value: "stock_in_unit_price",
              width: "140px",
            },
            {
              title: "备货入库数量",
              value: "stock_in_num",
              width: "120px",
            },
            {
              title: "备货入库总价",
              value: "stock_in_unit_price",
              width: "140px",
            },
            {
              title: "新订单发货合计",
              value: "new_order_ship_total",
              width: "150px",
            },
            {
              title: "换货发货合计",
              value: "exchange_sku_ship_total",
              width: "140px",
            },
            {
              title: "正品库存",
              value: "quality_stock",
              width: "150px",
            },
            {
              title: "残品库存",
              value: "scrap_stock",
              width: "140px",
            },
            {
              title: "正品库存值",
              value: "quality_stock_price",
              width: "140px",
            },
            {
              title: "餐品库存值",
              value: "scrap_stock_price",
              width: "150px",
            },
            {
              title: "期初残次品数量",
              value: "scrap_first_stock_num",
              width: "150px",
            },
            {
              title: "期初残次品单价",
              value: "scrap_first_stock_price",
              width: "150px",
            },
            {
              title: "备注",
              value: "remark",
              width: "160px",
            },
          ],
        },
        {
          name: "新订单发货",
          value: "new_order_id",
          type: "No",
          Search: true,
          ShowValue: "新订单出库选择发货表",
          GetApi: "GetShipList",
          placeholder: "请选择入库单",
          tableHeader: [
            {
              title: "订单号",
              value: "orderId",
              width: "150px",
              fixed: true,
            },
            {
              title: "收货人",
              value: "buyer_name",
              width: "120px",
              fixed: true,
            },
            {
              title: "电话",
              value: "phone",
              width: "140px",
              fixed: true,
            },
            {
              title: "收货信息",
              value: "address",
              width: "160px",
              fixed: true,
            },
            {
              title: "产品",
              value: "sku_name",
              width: "160px",
              fixed: false,
            },
            {
              title: "箱单",
              value: "print_PDF",
              width: "140px",
              fixed: false,
            },
            {
              title: "123支付金额",
              value: "pay_price",
              width: "140px",
              fixed: false,
            },
            {
              title: "结算金额",
              value: "settle_price",
              width: "150px",
              fixed: false,
            },
            {
              title: "订单台数",
              value: "sku_num",
              width: "140px",
              fixed: false,
            },
            {
              title: "新订单发货数量",
              value: "total_ship_num",
              width: "150px",
              fixed: false,
            },
            {
              title: "库存单价",
              value: "stock_unit_price",
              width: "120px",
              fixed: false,
            },
            {
              title: "直采发货数量",
              value: "direct_ship_num",
              width: "180px",
              fixed: false,
              IsUpdata: true,
              IsType: "input",
            },
            {
              title: "直采发货单价",
              value: "direct_ship_unit_price",
              width: "150px",
              fixed: false,
              IsUpdata: true,
              IsType: "input",
            },
            {
              title: "合计发货数量",
              value: "total ship_num",
              width: "180px",
              fixed: false,
            },
            {
              title: "发货人",
              value: "ship_person",
              width: "160px",
              fixed: false,
              IsUpdata: true,
              IsType: "input",
            },
            {
              title: "发货时间",
              value: "ship_time",
              width: "150px",
              fixed: false,
              IsUpdata: true,
              IsType: "time",
            },
            {
              title: "发货快递",
              value: "ship_name",
              width: "150px",
              fixed: false,
              IsUpdata: true,
              IsType: "input",
            },
            {
              title: "发货快递订单号",
              value: "ship_no",
              width: "180px",
              fixed: false,
              IsUpdata: true,
              IsType: "input",
            },
            {
              title: "货品总价",
              value: "sku_total_price",
              width: "150px",
              fixed: false,
            },
            {
              title: "123发货运费",
              value: "ship_price",
              width: "150px",
              fixed: false,
              IsUpdata: true,
              IsType: "input",
            },
            {
              title: "成本合计",
              value: "total_price",
              width: "150px",
              fixed: false,
            },
            {
              title: "备注说明",
              value: "remark",
              width: "140px",
              fixed: false,
              IsUpdata: true,
              IsType: "input",
            },
          ],
        },
        {
          name: "新订单发货数量",
          value: "new_order_sku_num",
          type: "input",
          placeholder: "请填写新订单发货数量",
        },
      ],
    },
  },
};
